package com.woniuxy.book.exception.account;

public enum AccountExceptionCode {

    ACCOUNT_EXCEPTION_NAME_REPEAT(10001,"账号名已注册"),

    ACCOUNT_EXCEPTION_PHONE_REPEAT(10005,"电话已注册"),

    ACCOUNT_EXCEPTION_DATA_NULL(10002,"数据为空"),
    ACCOUNT_EXCEPTION_PASSWORD_ERROR(10003,"密码输入错误"),

    ACCOUNT_EXCEPTION_IDCARD_REPEAT(10004,"该身份证号已注册"),
    ACCOUNT_EXCEPTION_ACCOUNT_NOT_EXIST(10006,"没有该账户"),
    ACCOUNT_EXCEPTION_ACCOUNR_NOT_NORMAL(10007,"该账户被禁用或被删除"),
    ACCOUNT_EXCEPTION_ADMIN_HAS_DISABLED(10008,"该账户已被禁用请勿重复禁用"),
    ACCOUNT_EXCEPTION_ADMIN_HAS_DELETED(10009,"该账户已被删除不能进行此操作"),
    ACCOUNT_EXCEPTION_ADMIN_HAS_NORMAL(10010,"该账户是正常状态请勿重复恢复"),
    ACCOUNT_EXCEPTION_ADMIN_NOT_DELETED(10011,"该账户没有被删除不能恢复");

    private Integer code;
    private String message;

    AccountExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
